HttpAuthentication.createDigestAuthentication

Returns a DigestAuthentication object that stores the username and password required for HTTP Digest Authenication

Example:

 var auth = HttpAuthentication.createDigestAuthentication("username", "password");
 var response = services.rest.get(.., .., .., auth);
 

returns DigestAuthentication

Parameters

java.lang.String  username,  java.lang.String  password,